<div class="clear_both"></div>
<div class="main_container">
<div class="sub_tabs">
<ul class="idTabs"> 
  <li><a href="#personal_data">Personal Data</a></li> 
  <li><a href="#dependents">Dependents</a></li> 
  <li><a href="#education">Education</a></li> 
  <li><a href="#employment">Employment</a></li>
</ul>
</div>
<div class="file201" id="personal_data">
<fieldset>
<legend>PERSONAL DATA</legend>
<div class="fieldset_container_2">
	<div class="column_1">
		<ul>
		<li> <label for="first_name">First Name</label>
		<? echo isset($user[0]->first_name)? $user[0]->first_name: "&nbsp;";?>
		</li>
		<li> <label for="last_name">Last Name</label>
		<? echo isset($user[0]->last_name)? $user[0]->last_name: "&nbsp;";?>
		</li>
		
		<li> <label for="middle_name">Middle Name</label>
		<? echo isset($user[0]->middle_name)? $user[0]->middle_name: "&nbsp;";?>
		</li>
		
		<li> <label for="birth_date">Date of Birth</label>
		<? echo isset($user[0]->birth_date)? $user[0]->birth_date: "&nbsp;";?>
		</li>
	
		<li> <label for="present_address">Present Address</label>
			<? echo isset($user[0]->present_address)? $user[0]->present_address: "&nbsp;";?>
		</li>
	
		<li> <label for="home_address">Home Address</label>
		<? echo isset($user[0]->home_address)? $user[0]->home_address: "&nbsp;";?>
		</li>
		
		<li> <label for="home_phone">Home Phone</label>
		<? echo isset($user[0]->home_phone)? $user[0]->home_phone: "&nbsp;";?>
		</li>
		
		<li> <label for="mobile_phone">Mobile Phone</label>
		<? echo isset($user[0]->mobile_phone)? $user[0]->mobile_phone: "&nbsp;";?>
		</li>
		<?php if(isset($user[0]->status) && $user[0]->status == 'Married'):?>
		<li> <label for="spouse_last_name">Spouse Last Name</label>
			<? echo isset($user[0]->spouse_last_name)? $user[0]->spouse_last_name: "&nbsp;";?>
		</li>
		
		<li> <label for="spouse_first_name">Spouse First Name</label>
			<? echo isset($user[0]->spouse_first_name)? $user[0]->spouse_first_name: "&nbsp;";?>
		</li>
		
		<li> <label for="spouse_middle_name">Spouse Middle Name</label>
			<? echo isset($user[0]->spouse_middle_name)? $user[0]->spouse_middle_name: "&nbsp;";?>
		</li>
		<?php endif;?>
		<li> <label for="notify_person">Notify Person</label>
			<? echo isset($user[0]->notify_person)? $user[0]->notify_person: "&nbsp;";?>
		</li>
		
		<li> <label for="notify_phone">Notify Phone</label>
			<? echo isset($user[0]->notify_phone)? $user[0]->notify_phone: "&nbsp;";?>
		</li>
		
		<li> <label for="notify_mobile_phone">Notify Mobile Phone</label>
			<? echo isset($user[0]->notify_mobile_phone)? $user[0]->notify_mobile_phone: "&nbsp;";?></li>
		<ul>
	</div>
	<div class="column_2">
		<img class="member_photo" src="<?php echo base_url()?>images/members/<?php echo ( isset($user[0]->photo) && $user[0]->photo !='')?$user[0]->photo:'default.jpg';?>" />
		<br>
		<?php echo form_open_multipart('user/uploadPicture', array('target'=>'hidden_frame'));?>
		<input type="file" name="userfile" size="20" /><br/>
		<?php echo form_hidden("user_id",$user_id);?>
		<input type="submit" name="submit" id="submit" value="Upload">
		<?php echo form_close();?>	
		<br>
		<ul>
		<li> <label for="first_name">TIN</label>
		<span class="native_bold">
		<? echo isset($user[0]->tin)? $user[0]->tin: "&nbsp;";?>
		</span></li>
		<li> <label for="last_name">SSS</label>
		<span class="native_bold">
		<? echo isset($user[0]->sss)? $user[0]->sss: "&nbsp;";?>
		</span></li>
		
		<li> <label for="middle_name">HDMF/Pag-ibig</label>
		<span class="native_bold">
		<? echo isset($user[0]->pag_ibig)? $user[0]->pag_ibig: "&nbsp;";?>
		</span></li>
		
		<li> <label for="middle_name">PhilHealth</label>
		<span class="native_bold">
		<? echo isset($user[0]->philhealth)? $user[0]->philhealth: "&nbsp;";?>
		</span></li>
		
		<li> <label for="birth_date">Blood Type</label>
		<span class="native_bold">
		<? echo isset($user[0]->blood_type)? $user[0]->blood_type: "&nbsp;";?>
		</span></li>
	
		<ul>
	</div>
</div>
</fieldset>

</div>

<div class="file201" id="education">
<fieldset>
<legend>EDUCATIONAL ATTAINMENT</legend>
<ul>
	<li> <label for="tin">School</label>
	<input type="text" name="school_name[]" id="school_name" size="30" value="<?echo isset($education[0]->school_name)?$education[0]->school_name:'';?>" />
	<input type="hidden" name="educ_id[]" value="<?echo isset($education[0]->id)?$education[0]->id:'1';?>"></li>
	<li> <label for="date_start">Date Started</label>
	<input type="text" name="date_start[]" id="date_start" size="30" value="<?echo isset($education[0]->date_start)?$education[0]->date_start:'';?>" /></li>
	
	<li> <label for="date_end">Date Ended</label>
	<input type="text" name="date_end[]" id="date_end" size="30" value="<?echo isset($education[0]->date_end)?$education[0]->date_end:'';?>" /></li>

	<li> <label for="date_register">Date Registered</label>
		<select name="type[]">
			<option value="COLLEGE" <? if(isset($education[0]->type)){ echo ($education[0]->type == 'COLLEGE')?'selected':'';}?>>College</option>
			<option value="VOCATIONAL" <? if(isset($education[0]->type)){ echo ($education[0]->type == 'VOCATIONAL')?'selected':'';}?>>Vocational</option>
			<option value="SECONDARY" <? if(isset($education[0]->type)){ echo ($education[0]->type == 'SECONDARY')?'selected':'';}?>>Secondary</option>
			<option value="PRIMARY" <? if(isset($education[0]->type)){ echo ($education[0]->type == 'PRIMARY')?'selected':'';}?>>Primary</option>
		</select></li>
	<!--border-->	
	<li> <label for="tin">School</label>
	<input type="text" name="school_name[]" id="school_name" size="30" value="<?echo isset($education[1]->school_name)?$education[1]->school_name:'';?>" />
	<input type="hidden" name="educ_id[]" value="<?echo isset($education[1]->id)?$education[1]->id:'1';?>"></li>
	
	<li> <label for="date_start">Date Started</label>
	<input type="text" name="date_start[]" id="date_start" size="30" value="<?echo isset($education[1]->date_start)?$education[1]->date_start:'';?>" /></li>
	
	<li> <label for="date_end">Date Ended</label>
	<input type="text" name="date_end[]" id="date_end" size="30" value="<?echo isset($education[1]->date_end)?$education[1]->date_end:'';?>" /></li>

	<li> <label for="date_register">Date Registered</label>
		<select name="type[]">
			<option value="COLLEGE" <? if(isset($education[1]->type)){ echo ($education[1]->type == 'COLLEGE')?'selected':'';}?>>College</option>
			<option value="VOCATIONAL" <? if(isset($education[1]->type)){ echo ($education[1]->type == 'VOCATIONAL')?'selected':'';}?>>Vocational</option>
			<option value="SECONDARY" <? if(isset($education[1]->type)){ echo ($education[1]->type == 'SECONDARY')?'selected':'';}?>>Secondary</option>
			<option value="PRIMARY" <? if(isset($education[1]->type)){ echo ($education[1]->type == 'PRIMARY')?'selected':'';}?>>Primary</option>
		</select></li>
	<!--border-->
	<li> <label for="tin">School</label>
	<input type="text" name="school_name[]" id="school_name" size="30" value="<?echo isset($education[2]->school_name)?$education[2]->school_name:'';?>" />
	<input type="hidden" name="educ_id[]" value="<?echo isset($education[2]->id)?$education[2]->id:'1';?>"></li>
	<li> <label for="date_start">Date Started</label>
	<input type="text" name="date_start[]" id="date_start" size="30" value="<?echo isset($education[2]->date_start)?$education[2]->date_start:'';?>" /></li>
	
	<li> <label for="date_end">Date Ended</label>
	<input type="text" name="date_end[]" id="date_end" size="30" value="<?echo isset($education[2]->date_end)?$education[1]->date_end:'';?>" /></li>

	<li> <label for="date_register">Type</label>
		<select name="type[]">
			<option value="COLLEGE" <? if(isset($education[2]->type)){ echo ($education[2]->type == 'COLLEGE')?'selected':'';}?>>College</option>
			<option value="VOCATIONAL" <? if(isset($education[2]->type)){ echo ($education[2]->type == 'VOCATIONAL')?'selected':'';}?>>Vocational</option>
			<option value="SECONDARY" <? if(isset($education[2]->type)){ echo ($education[2]->type == 'SECONDARY')?'selected':'';}?>>Secondary</option>
			<option value="PRIMARY" <? if(isset($education[2]->type)){ echo ($education[2]->type == 'PRIMARY')?'selected':'';}?>>Primary</option>
		</select></li>
	<li><label for="submit">&nbsp;</label>
	<?php echo form_hidden("user_id",$user_id);?>
	<input type="submit" name="submit" id="submit" value="Save"></li>	
<ul>
</fieldset>
</div>
<div class="file201" id="dependents">
<fieldset>
<legend>DEPENDENTS</legend>
<ul>
	<li> <label for="dependent_first_name">First Name</label>
	<input type="text" name="dependent_first_name[]" id="dependent_first_name" size="30" value="<?echo isset($dependents[0]->first_name)?$dependents[0]->first_name:'';?>"/>
	<input type="hidden" name="dependent_id[]" value="<?echo isset($dependents[0]->id)?$dependents[0]->id:'1';?>"></li>
	
	<li> <label for="dependent_last_name[]">Last Name</label>
	<input type="text" name="dependent_last_name[]" id="dependent_last_name[]" size="30" value="<?echo isset($dependents[0]->last_name)?$dependents[0]->last_name:'';?>" /></li>
	
	<li> <label for="dependent_middle_name">Middle Name</label>
	<input type="text" name="dependent_middle_name[]" id="dependent_middle_name" size="30" value="<?echo isset($dependents[0]->middle_name)?$dependents[0]->middle_name:'';?>" /></li>
	
	<li> <label for="dependent_birth_date">Date of Birth</label>
	<input type="text" name="dependent_birth_date[]" id="dependent_birth_date" size="30" value="<?echo isset($dependents[0]->birth_date)?$dependents[0]->birth_date:'';?>" /></li>

	<li> <label for="dependent_gender">Gender</label>
		<select name="dependent_gender[]">
			<option value="Male" <?if(isset($dependents[0]->gender)){echo ($dependents[0]->gender == 'Male')?'selected':'';}?>>Male</option>
			<option value="Female" <?if(isset($dependents[0]->gender)){echo ($dependents[0]->gender == 'Female')?'selected':'';}?>>Female</option>
		</select></li>
						
	<li> <label for="dependent_type">Type</label>
		<select name="dependent_type[]">
			<option value="SPOUSE" <? if(isset($dependents[0]->type)){echo ($dependents[0]->type == 'Spouse')?'selected':'';}?>>Spouse</option>
			<option value="CHILD" <? if(isset($dependents[0]->type)){echo ($dependents[0]->type == 'Child')?'selected':'';}?>>Child</option>
			<option value="PARENT" <? if(isset($dependents[0]->type)){echo ($dependents[0]->type == 'Parent')?'selected':'';}?>>Parent</option>
		</select></li>
	<!--border-->
	<li> <label for="dependent_first_name">First Name</label>
	<input type="text" name="dependent_first_name[]" id="dependent_first_name" size="30" value="<?echo isset($dependents[1]->first_name)?$dependents[1]->first_name:'';?>"/>
	<input type="hidden" name="dependent_id[]" value="<?echo isset($dependents[1]->id)?$dependents[1]->id:'2';?>"></li>
	
	<li> <label for="dependent_last_name[]">Last Name</label>
	<input type="text" name="dependent_last_name[]" id="dependent_last_name[]" size="30" value="<?echo isset($dependents[1]->last_name)?$dependents[1]->last_name:'';?>" /></li>
	
	<li> <label for="dependent_middle_name">Middle Name</label>
	<input type="text" name="dependent_middle_name[]" id="dependent_middle_name" size="30" value="<?echo isset($dependents[1]->middle_name)?$dependents[1]->middle_name:'';?>" /></li>
	
	<li> <label for="dependent_birth_date">Date of Birth</label>
	<input type="text" name="dependent_birth_date[]" id="dependent_birth_date" size="30" value="<?echo isset($dependents[1]->birth_date)?$dependents[1]->birth_date:'';?>" /></li>

	<li> <label for="dependent_gender">Gender</label>
		<select name="dependent_gender[]">
			<option value="Male" <?if(isset($dependents[1]->gender)){echo ($dependents[1]->gender == 'Male')?'selected':'';}?>>Male</option>
			<option value="Female" <?if(isset($dependents[1]->gender)){echo ($dependents[1]->gender == 'Female')?'selected':'';}?>>Female</option>
		</select></li>
						
	<li> <label for="dependent_type">Type</label>
		<select name="dependent_type[]">
			<option value="SPOUSE" <? if(isset($dependents[1]->type)){echo ($dependents[1]->type == 'Spouse')?'selected':'';}?>>Spouse</option>
			<option value="CHILD" <? if(isset($dependents[1]->type)){echo ($dependents[1]->type == 'Child')?'selected':'';}?>>Child</option>
			<option value="PARENT" <? if(isset($dependents[1]->type)){echo ($dependents[1]->type == 'Parent')?'selected':'';}?>>Parent</option>
		</select></li>
	<!--border-->
	<li> <label for="dependent_first_name">First Name</label>
	<input type="text" name="dependent_first_name[]" id="dependent_first_name" size="30" value="<?echo isset($dependents[2]->first_name)?$dependents[2]->first_name:'';?>"/>
	<input type="hidden" name="dependent_id[]" value="<?echo isset($dependents[2]->id)?$dependents[2]->id:'3';?>"></li>
	
	<li> <label for="dependent_last_name[]">Last Name</label>
	<input type="text" name="dependent_last_name[]" id="dependent_last_name[]" size="30" value="<?echo isset($dependents[2]->last_name)?$dependents[2]->last_name:'';?>" /></li>
	
	<li> <label for="dependent_middle_name">Middle Name</label>
	<input type="text" name="dependent_middle_name[]" id="dependent_middle_name" size="30" value="<?echo isset($dependents[2]->middle_name)?$dependents[2]->middle_name:'';?>" /></li>
	
	<li> <label for="dependent_birth_date">Date of Birth</label>
	<input type="text" name="dependent_birth_date[]" id="dependent_birth_date" size="30" value="<?echo isset($dependents[2]->birth_date)?$dependents[2]->birth_date:'';?>" /></li>

	<li> <label for="dependent_gender">Gender</label>
		<select name="dependent_gender[]">
			<option value="Male" <?if(isset($dependents[2]->gender)){echo ($dependents[2]->gender == 'Male')?'selected':'';}?>>Male</option>
			<option value="Female" <?if(isset($dependents[2]->gender)){echo ($dependents[2]->gender == 'Female')?'selected':'';}?>>Female</option>
		</select></li>
						
	<li> <label for="dependent_type">Type</label>
		<select name="dependent_type[]">
			<option value="SPOUSE" <? if(isset($dependents[2]->type)){echo ($dependents[2]->type == 'Spouse')?'selected':'';}?>>Spouse</option>
			<option value="CHILD" <? if(isset($dependents[2]->type)){echo ($dependents[2]->type == 'Child')?'selected':'';}?>>Child</option>
			<option value="PARENT" <? if(isset($dependents[2]->type)){echo ($dependents[2]->type == 'Parent')?'selected':'';}?>>Parent</option>
		</select></li>		
<ul>
</fieldset>
</div>

<div class="file201" id="employment">
<fieldset>
	<legend>EMPLOYMENT HISTORY</legend>
	Employment history here
</fieldset>
</div>
</div>
<iframe id="hidden_frame" name="hidden_frame"></iframe>